package com.bawei.mall.user.remote;

import com.bawei.common.core.constant.ServiceNameConstants;
import com.bawei.common.core.domain.R;
import com.bawei.mall.user.domain.CusUser;
import com.bawei.mall.user.factory.RemoteUserInfoFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：HaoYunde
 * @Package：com.bawei.mall.user.remote
 * @Project：mall_cloud
 * @name：RemoteUserInfo
 * @Date：2024/6/27 17:05
 */
@FeignClient(contextId = "remoteUserInfoService", value = ServiceNameConstants.User_SERVICE,
        fallbackFactory = RemoteUserInfoFallbackFactory.class,
        path = "/user")
public interface RemoteUserInfo {
    @GetMapping("/findCusUserByName")
    public R<CusUser> findCusUserByName(@RequestParam("username") String username);

}
